using BBX.Entity;
using BBX.Forum;

namespace BBX.Web
{
    public class forumlist : PageBase
    {
        public IUser userinfo;
        public System.Int32 totalonline;
        public System.Int32 totalonlineuser = Online.Meta.Count;
        public System.String[] score = Scoresets.GetValidScoreName();

        protected override void ShowPage()
        {
            pagetitle = "版块列表";
            if (config.Rssstatus == 1)
            {
                base.AddLinkRss("tools/rss.aspx", config.Forumtitle + "最新主题");
            }
            if (userid != -1)
            {
                userinfo = BBX.Entity.User.FindByID(userid);
                newpmcount = (!userinfo.Newpm ? 0 : newpmcount);
            }
            Online.UpdateAction(olid, UserAction.IndexShow, 0, config.Onlinetimeout);
            totalonline = onlineusercount;
        }
    }
}